package edu.xmut.yuepai.model.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 帖子
 *
 * @TableName blog
 */
@Data
@TableName(value = "blog")
public class Blog implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 内容类型（0-图文，1-视频）
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 关联的约拍id
     */
    @TableField(value = "publish_id")
    private Long publishId;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 封面
     */
    @TableField(value = "cover")
    private String cover;

    /**
     * 点赞数（喜欢数）
     */
    @TableField(value = "liked")
    private Integer liked;

    /**
     * 评论数
     */
    @TableField(value = "comments")
    private Integer comments;

    /**
     * 视频的地址
     */
    @TableField(value = "video_url")
    private String videoUrl;

    /**
     * 经度
     */
    @TableField(value = "lon")
    private BigDecimal lon;

    /**
     * 纬度
     */
    @TableField(value = "lat")
    private BigDecimal lat;

    /**
     * 发布地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 详细地址
     */
    @TableField(value = "full_Address")
    private String fullAddress;

    /**
     * 地区
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * 发布时间
     */
    @TableField(value = "publish_time")
    private Date publishTime;

    /**
     * 是否删除（0-否，1-是）
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}